/**
 * Created by Neville Kadwa.
 */

package org.shiftone.cdep.util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import org.apache.log4j.Logger;

public class JDBCUtil
{

    public static final Logger LOG = Logger.getLogger(JDBCUtil.class);

    public static void close(Statement s)
    {
        if (s != null)
        {
            try
            {
                s.close();
            }
            catch (SQLException ex)
            {
            }
        }
    }

    public static void close(ResultSet rs)
    {
        if (rs != null)
        {
            try
            {
                rs.close();
            }
            catch (SQLException ex)
            {
            }
        }
    }

    public static void close(Connection c)
    {
        if (c != null)
        {
            try
            {
                c.close();
            }
            catch (SQLException ex)
            {
            }
        }
    }
}

/* EOF */
